/* 
 * Copyright (C) 2012 UTSChedule
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package utsc.apps.utschedule.widget;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;

/**
 * A custom ui widget that can be used in a {@link TimeBlockLayout}.
 * @author Wenbin Cai
 *
 */
public abstract class BlockView extends LinearLayout {

	protected int _hourPosition;
	protected int _columnPosition;
	protected View _contentView;
	protected int _paddingOffset=10;
	
	public BlockView(Context context) {
		super(context);

	}

	public void set_hourPosition(int _hourPosition) {
		this._hourPosition = _hourPosition;
	}

	public void set_columnPosition(int _columnPosition) {
		this._columnPosition = _columnPosition;
	}

	public int get_hourPosition() {
		return _hourPosition;
	}

	public int get_columnPosition() {
		return _columnPosition;
	}

	public View get_contentView() {
		return _contentView;
	}

	public void set_contentView(View _contentView) {
		this._contentView = _contentView;
	}
	
	protected abstract void setupContentView();

}
